package com.atguigu.flinksql;

import org.apache.flink.configuration.Configuration;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.bridge.java.StreamTableEnvironment;

public class Flink04_Table_Flie {
    public static void main(String[] args) {
        Configuration configuration = new Configuration();
        configuration.setInteger("rest.port",10000);
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(configuration);
        env.setParallelism(2);

        //1、创建表环境
        StreamTableEnvironment tEnv = StreamTableEnvironment.create(env);

        //2、直接从文件中读取数据，并使用tableAPI


        try {
            env.execute();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
